package com.hehua.FactoryMethodTwo;

public class DatabaseLogger implements  Logger {
    @Override
    public void writeLogger() {
        System.out.println("数据库记录");
    }

    public DatabaseLogger getConnect(String args){
        System.out.println("连接到"+args+"数据库了");
        return new DatabaseLogger();
    }
}
